package com.king.run.activity.mine;

import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

import com.king.run.R;
import com.king.run.base.BaseActivity;
import com.king.run.view.VerifycationCodeView;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

@ContentView(R.layout.activity_input_verify_code)
public class InputVerifyCodeActivity extends BaseActivity {
    @ViewInject(R.id.verifycation_code_view)
    VerifycationCodeView verifycationCodeView;
    private String input = "";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initViews();
    }

    private void initViews() {
        verifycationCodeView.setAutoCommitListener(new VerifycationCodeView.AutoCommitListener() {
            @Override
            public void autoCommit(String inputText) {
                input = inputText;
            }
        });
    }
}
